package top.wanzc.java.basic.design.pattern.visitor.acyclic;

import junit.framework.TestCase;

public class TestModemVisitor extends TestCase {
	
	public TestModemVisitor(String name) {
		super(name);
	}
	
	private UnixModemConfigurator v;
	private HayesModem h;
	private ZoomModem z;
	private ErnieModem e;
	
	public void setUp() {
		v = new UnixModemConfigurator();
		h = new HayesModem();
		z = new ZoomModem();
		e = new ErnieModem();
	}
	
	public void testHayesForUnix() {
		h.accept(v);
		assertEquals("&s1=4&D=3", h.configurationString);
	}

}
